<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_goods_refund-add-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input id="orderTotalCode" name="orderTotalCode" placeholder="请输入订单总编号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单子编号：</label>
			<div class="layui-input-block">
				<input id="orderChildCode" name="orderChildCode" placeholder="请输入订单子编号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户id：</label>
			<div class="layui-input-block">
				<input id="merchantsId" name="merchantsId" placeholder="请输入商户id"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款单号：</label>
			<div class="layui-input-block">
				<input id="refundCode" name="refundCode" placeholder="请输入退款单号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input id="supplyId" name="supplyId" placeholder="请输入供应商ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供货来源 (1.商户;2.供应商)：</label>
			<div class="layui-input-block">
				<input id="refundToType" name="refundToType" placeholder="请输入供货来源 (1.商户;2.供应商)"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户id：</label>
			<div class="layui-input-block">
				<input id="memberId" name="memberId" placeholder="请输入用户id"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">收货地址ID：</label>
			<div class="layui-input-block">
				<input id="addressId" name="addressId" placeholder="请输入收货地址ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品ID：</label>
			<div class="layui-input-block">
				<input id="goodsId" name="goodsId" placeholder="请输入商品ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">总订单金额：</label>
			<div class="layui-input-block">
				<input id="totalPrice" name="totalPrice" placeholder="请输入总订单金额"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请退款金额：</label>
			<div class="layui-input-block">
				<input id="applyRefundPrice" name="applyRefundPrice" placeholder="请输入申请退款金额"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">实际退款金额：</label>
			<div class="layui-input-block">
				<input id="actualRefundPrice" name="actualRefundPrice" placeholder="请输入实际退款金额"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款方式 0:微信，1：支付宝：</label>
			<div class="layui-input-block">
				<input id="refundType" name="refundType" placeholder="请输入退款方式 0:微信，1：支付宝"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败  50:撤销退款：</label>
			<div class="layui-input-block">
				<input id="refundState" name="refundState" placeholder="请输入退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败  50:撤销退款"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退货原因：</label>
			<div class="layui-input-block">
				<input id="refundWhy" name="refundWhy" placeholder="请输入退货原因"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款记录说明：</label>
			<div class="layui-input-block">
				<input id="refundInstructions" name="refundInstructions" placeholder="请输入退款记录说明"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款时间：</label>
			<div class="layui-input-block">
				<input id="refundTime" name="refundTime" placeholder="请输入退款时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input id="deleteFlag" name="deleteFlag" placeholder="请输入"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input id="createTime" name="createTime" placeholder="请输入"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input id="updateTime" name="updateTime" placeholder="请输入"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_goods_refund-add">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
                 			laydate.render({
				elem : '#refundTime',
				type : 'datetime'
			});
  			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
 			//监听提交
			form.on('submit(shop_goods_refund-add)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/goods_refund/save", data.field);
				return false;
			});
		});
	</script>
</body>
</html>